package test5

object StrTestReg {
  def main(args: Array[String]): Unit = {
    val str="nihao dog test pig"
    val starr = str.split("\\s+")
    starr.foreach(println)
    var str2="sdf33sdlkfjsdlf33lskdjfsdf332@1lkjsdfl";
    val a2 = str2.split("\\d+")
    a2.foreach(println)

    val reg="\\w+\\.@\\w+(\\.\\w+)+".r()
    println(reg.getClass)
  }
}
